<?php
/**
 * Created by PhpStorm.
 * User: Fight.节奏
 * Date: 2016/8/3
 * Time: 21:36
 */
//获得连接
$linkModel=new Common\Model\Link();
$linkData=$linkModel->orderBy('addtime','DESC')->limit(5)->get();
?>
<div class="links">
    <h2>
        <p>友情链接</p>
    </h2>
    <ul>
        <?php foreach ($linkData as $v){?>
        <li><img src="<?php echo $v['logo']?>" width="20px" height="20px" alt="" style="float: left;margin-right: 20px;"><a href="<?php echo $v['url']?>" target="_blank" style="float: left;color: whitesmoke;"><?php echo $v['lname']?></a></li>
        <?php }?>
    </ul>
</div>
<div class="copyright">
    <ul>
        <p> Design by <a href="/"><?php echo C('WebSet.WEB_NAME')?></a></p>
        <p><?php echo C('WebSet.COPY_INFO')?></p>
        <p><?php echo C('WebSet.COPY_NUM')?></p>
    </ul>
</div>
